import styled from 'styled-components';

export const Wrapper = styled.div`
  width: 100%;
  position: fixed;
  top: 0;
  bottom: 0;
  /* border: 1px solid red; */
`
const js = function(e) {
  return e/16
}

export const UlWrapper = styled.ul`
  box-sizing: border-box;
  padding: 0 15px 0 13px;
  background-color:#fff;
  li {
    width: 25%;
    float: left;
    border-radius: 1px solid #ccc;
    font-size: 13px;
    position: relative;
    &:nth-child(-n + 3) {
      &::after {
        content: '';
        position: absolute;
        width: 1px;
        height: 12px;
        right: 0px;
        top: 18px;
        background: #ccc;
      }
    }
    select {
      /* text-align: center;
      text-align-last: center; */
      width: 100%;
      padding-left: 5px;
      height: 3rem;
      font-size: 13px;
      border: 0px solid red;
      background-color: #fff;
      appearance:none;
      -moz-appearance:none;
      -webkit-appearance:none;
      background: url("/select.png") no-repeat right 7px center;
    }
  }
`

export const ListWrapper = styled.div`
  width: 100%;
  background-color: #fff;
`

export const CourseListWrapper = styled.div`
  img {
    width: 10rem;
    height: 6rem;
    float: left;
  }
  .title {
    font-size: 0.9rem;
    color: #666;
    line-height: ${js(24)}px;
  }
  .price {
    color: #FF5354;
    font-weight: bold;
  }

`

export const CartWrapper = styled.div`
  width: 100%;
  position: absolute;
  bottom: 70px;
  background-color: #fff;
  top: 0;
  overflow-y: auto;
  input[type="checkbox"] {
    content: "\a0";  /*不换行空格*/
    display: inline-block;
    width:15px;
    height:15px;
    border-radius:50%;
    text-align:center;
    line-height:20px;  
    border:2px solid #ccc;
    -webkit-appearance: none;  
    background-color: transparent;  
  }

  input[type="checkbox"]:checked {
    border:4px solid #91d82b;
  }
`

export const CartTitle = styled.h3`
  text-align: center;
  font-size: 1.5rem;
  color: #999;
  padding: 6px 0;
  background: #fff;
`

export const SettlementWrapper = styled.div`
  position: absolute;
  bottom: 0px;
  width: 100%;
  input[type="checkbox"] {
    content: "\a0";  /*不换行空格*/
    display: inline-block;
    width:20px;
    height:20px;
    border-radius:50%;
    text-align:center;
    line-height:20px;  
    border:2px solid #ccc;
    -webkit-appearance: none;  
    background-color: transparent;  
  }

  input[type="checkbox"]:checked {
    border:4px solid #91d82b;
  }
`

// 我的课程


export const CourseWrapper = styled.div`
  display: flex;
  justify-content: space-between;
  background-color: #fff;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid #8BCA31;
`

export const UlCourseWrapper = styled.ul`
  display: flex;
  li {
    text-align: center;
    margin-right: 0.4rem;
    a {
      color: #888;
      font-size: 0.8rem;
      p {
        line-height: 1.5rem;
      }
    }
  }
  li.active {
    a {
      color: #8BCA31 !important;
    } 
  }
`

export const SelectItem = styled.div`
  margin-top: 12px;
  h3 {
    font-size: 19px;
    font-weight: bold;
    text-align: center;
    margin-top: 20px;
  }
  p {
    line-height: 20px;
    color: #ccc;
    margin-bottom: 8px;
  }
  span {
    display: inline-block;
    width: 98px; 
    height: 30px;
    line-height: 30px;
    text-align: center;
    background-color: #edeff3;
    cursor: pointer;
    border-radius: 15px;
    margin: 0 4px;
    margin-bottom: 16px;
    &.active {
      color: #fff;
      background-color: #92d82a;
    }
  }

  @media screen and (max-width: 374px) {
    span {
      width: 88px; 
      overflow: hidden;
    }
  }


`